package org.zjx.common.route;

import lombok.Getter;
import lombok.Setter;
import org.zjx.common.entity.Address;

import java.awt.*;

/**
 * 跨城 光圈传送
 */
@Setter
@Getter
public class TransferApertureRoute extends AbstractRoute {
    public TransferApertureRoute() {}

    private Point clickPoint;

    private boolean toRoom = false; // 是否传送进入房间

    public TransferApertureRoute(Address startAddress, Address endAddress) {
        super(startAddress, endAddress, 3);
        if (startAddress == null || endAddress == null) throw new NullPointerException();
        if (startAddress.getCity().equals(endAddress.getCity())) throw new IllegalArgumentException();
    }
}
